const {
  override,
  fixBabelImports,
  addWebpackAlias,
} = require('customize-cra');
const Path = require("path");

const overrideModel = override(
  fixBabelImports('import', {
    libraryName: 'antd',
    libraryDirectory: 'es',
    style: 'css',
  }),
  // 添加别名
  addWebpackAlias({
    "@": Path.resolve(__dirname, "src"),
    "@store": Path.resolve(__dirname, "src/store")
  })
); 

module.exports = overrideModel
